using System;
using System.Collections.Generic;
using System.Text;

namespace BizTalk.BuildGenerator.Tasks.BAM
{
    /// <summary>
    /// Removes a BAM Activity
    /// </summary>
    public class RemoveView : BaseBMTask 
    {
        private string _ViewName;

        /// <summary>
        /// The name of the View to remove
        /// </summary>
        public string ViewName
        {
            get { return _ViewName; }
            set { _ViewName = value; }
        }
        /// <summary>
        /// Executes the task
        /// </summary>
        /// <returns></returns>
        public override bool Execute()
        {
            string argsFormat = "remove-view -Name:{0}";
            return base.ExecuteBM(string.Format(argsFormat, this._ViewName));            
        }
    }
}
